import pytest
import requests
class Test():
    ipaddr="http://10.59.9.18"
    uid=""
    sid=""
    mid=""
    cid=""
    oid=""

    def setup_method(self):
        pass
    def teardown_method(self):
        pass

    # 登录
    def test_login(self):
        url="http://10.59.9.18/movieApi/user/v2/login"
        data={"email":"1478997572@qq.com","pwd":"eWLPHopE945d2ivttHaQTQ=="}
        r=requests.post(url=url,params=data)
        print(r.json())
        Test.uid=r.json()['result']['userId']
        Test.sid=r.json()['result']['sessionId']

